package com.shenjinzheng.movie_ticket_app.model

import java.util.Date

data class Booking(
    val bookingId: String,
    val userId: String,
    val orderId: String,
    val seats: List<Seat>,
    val bookingDate: Date,
    var paymentStatus: String // 可以是"未支付"、"已支付"
) {
    // 获取座位列表的座位号
    fun getSeatsNames(): String {
        return seats.joinToString(", ") { it.getSeatName() }
    }

    // 标记预订为已支付
    fun markAsPaid() {
        paymentStatus = "已支付"
    }
}